import layout from '@/views/layout/layout';
import {constantRoutes} from './index';
// let import_file = file => () => import('@/views/' + file + '.vue')

// export const constRoutes = [
//     {
//       name: "Statistics",
//       path: "/statistics",
//       component:layout,
//       meta: {title: "数据统计", icon: "el-icon-pie-chart"},
//       redirect: "/statistics/sales_statistics",
//       children: [
//         {
//           path: "/statistics/sales_statistics",
//           meta: {title: "销售统计"},
//           component: ()=>import('@/views/statistics/layout'),
//           redirect: "/statistics/sales_statistics/sales_statistics_index",
//           children: [
//             {
//               path: "/statistics/sales_statistics/sales_statistics_index",
//               meta:{hidden: true},
//               component: ()=>import('@/views/statistics/sales_statistics'),
//             },
//             {
//               path: '/statistics/sales_statistics/sales_num',
//               meta:{ title: '销售数量',hidden: true},
//               component:()=>import('@/views/statistics/sales_num'),
//             },
//             {
//               path: "/statistics/sales_statistics/sales_user",
//               meta: {title: "付款用户",hidden: true},
//               component: ()=>import('@/views/statistics/layout'),
//               redirect: "/statistics/sales_statistics/sales_user1",
//               children: [
//                 {
//                   path: '/statistics/sales_statistics/sales_user1',
//                   meta:{ hidden: true},
//                   component:()=>import('@/views/statistics/sales_user'),
//                 },
//                 {
//                   path: "/statistics/sales_statistics/user_orders",
//                   meta: {title: "用户订单",hidden: true},
//                   component: ()=>import('@/views/statistics/layout'),
//                   redirect: "/statistics/sales_statistics/user_orders1",
//                   children: [
//                     {
//                       path: '/statistics/sales_statistics/user_orders1',
//                       meta:{ hidden: true},
//                       component:()=>import('@/views/statistics/user_orders'),
//                     },
//                     {
//                       path: '/statistics/sales_statistics/user_orders/detail',
//                       meta:{ title: '订单详情',hidden: true},
//                       component:()=>import('@/views/statistics/detail'),
//                     },
//                   ]
//                 }
//               ]
//             },
//             {
//               path: "/statistics/sales_statistics/sales_limit",
//               meta: {title: "销售额",hidden: true},
//               component: ()=>import('@/views/statistics/layout'),
//               redirect: "/statistics/sales_statistics/sales_limit1",
//               children: [
//                 {
//                   path: '/statistics/sales_statistics/sales_limit1',
//                   meta:{hidden: true},
//                   component:()=>import('@/views/statistics/sales_limit'),
//                 },
//                 {
//                   path: '/statistics/sales_statistics/detail',
//                   meta:{ title: '订单详情',hidden: true},
//                   component:()=>import('@/views/statistics/detail'),
//                 },
//               ]
//             },
//             {
//               path: "/statistics/sales_statistics/designer",
//               meta: {title: "设计师详情",hidden: true},
//               component: ()=>import('@/views/statistics/layout'),
//               redirect: "/statistics/sales_statistics/designer1",
//               children: [
//                 {
//                   path: '/statistics/sales_statistics/designer1',
//                   meta:{hidden: true},
//                   component:()=>import('@/views/statistics/designer'),
//                 },
//                 {
//                   path: '/statistics/sales_statistics/user_detail',
//                   meta:{ title: '客户详情', hidden: true},
//                   component:()=>import('@/views/statistics/user_detail'),
//                 },
//               ]
//             },
//
//           ]
//         },
//         {
//           path: "/statistics/maintain_statistics",
//           meta: {title: "维修统计"},
//           component: ()=>import('@/views/statistics/layout'),
//           redirect: "/statistics/maintain_statistics/maintain_statistics_index",
//           children: [
//             {
//               path: "/statistics/maintain_statistics/maintain_statistics_index",
//               meta:{hidden: true},
//               component: ()=>import('@/views/statistics/maintain_statistics'),
//             },
//             {
//               path: "/statistics/maintain_statistics/maintain_num",
//               meta: {title: "维修数量",hidden: true},
//               component: ()=>import('@/views/statistics/layout'),
//               redirect: "/statistics/maintain_statistics/maintain_num1",
//               children:[
//                 {
//                   path: '/statistics/maintain_statistics/maintain_num1',
//                   meta:{hidden: true},
//                   component:()=>import('@/views/statistics/maintain_num'),
//                 },
//                 {
//                   path: '/statistics/maintain_statistics/maintain_num_detail',
//                   meta:{ title: '维修数量详情',hidden: true},
//                   component:()=>import('@/views/statistics/maintain_num_detail'),
//                 },
//               ]
//             },
//
//
//             {
//               path: "/statistics/maintain_statistics/maintain_designer_rank",
//               meta: {title: "测量师维修数量排行",hidden: true},
//               component: ()=>import('@/views/statistics/layout'),
//               redirect: "/statistics/maintain_statistics/maintain_designer_rank1",
//               children: [
//                 {
//                   path: '/statistics/maintain_statistics/maintain_designer_rank1',
//                   meta:{hidden: true},
//                   component:()=>import('@/views/statistics/maintain_designer_rank'),
//                 },
//                 {
//                   path: "/statistics/maintain_statistics/maintain_designer",
//                   meta: {title: "测量师详情",hidden: true},
//                   component: ()=>import('@/views/statistics/layout'),
//                   redirect: "/statistics/maintain_statistics/maintain_designer1",
//                   children: [
//                     {
//                       path: '/statistics/maintain_statistics/maintain_designer1',
//                       meta:{ title: '',hidden: true},
//                       component:()=>import('@/views/statistics/maintain_designer'),
//                     },
//                     {
//                       path: "/statistics/maintain_statistics/designer_order_list",
//                       meta: {title: "测量师订单列表",hidden: true},
//                       component: ()=>import('@/views/statistics/layout'),
//                       redirect: "/statistics/maintain_statistics/designer_order_list1",
//                       children: [
//                         {
//                           path: '/statistics/maintain_statistics/designer_order_list1',
//                           meta:{hidden: true},
//                           component:()=>import('@/views/statistics/designer_order_list'),
//                         },
//                         {
//                           path: '/statistics/maintain_statistics/maintain_designer_detail',
//                           meta:{ title: '详情',hidden: true},
//                           component:()=>import('@/views/statistics/maintain_designer_detail'),
//                         },
//                       ]
//                     }
//
//                   ]
//                 }
//
//
//               ]
//             },
//
//           ]
//         },
//         {
//           path: "/statistics/send_statistics",
//           meta: {title: "收发统计"},
//           component: ()=>import('@/views/statistics/layout'),
//           redirect: "/statistics/send_statistics/send_statistics_index",
//           children: [
//             {
//               path: '/statistics/send_statistics/send_statistics_index',
//               meta:{hidden: true},
//               component: ()=>import('@/views/statistics/send_statistics_index'),
//             },
//
//             {
//               path: '/statistics/send_statistics/send_statistics_detail',
//               meta:{title: '收发详情',hidden: true},
//               component: ()=>import('@/views/statistics/send_statistics_detail'),
//             },
//             {
//               path: "/statistics/send_statistics/check_statistics",
//               meta: {title: "合验详情",hidden: true},
//               component: ()=>import('@/views/statistics/layout'),
//               redirect: "/statistics/send_statistics/check_statistics1",
//               children:[
//                 {
//                   path: '/statistics/send_statistics/check_statistics1',
//                   meta:{hidden: true},
//                   component: ()=>import('@/views/statistics/check_statistics'),
//                 },
//                 {
//                   path: '/statistics/send_statistics/detail',
//                   meta:{title:'合验订单详情',hidden: true},
//                   component: ()=>import('@/views/statistics/detail'),
//                 },
//               ]
//             }
//
//           ]
//         }
//
//       ]
//     },
//     {
//       name: "Orders",
//       path: "/orders",
//       component: layout,
//       meta:{ title: '订单管理', icon: "el-icon-adm-home" },
//       redirect: '/orders/audit',
//       children: [
//           {
//             name: "Audit",
//             path: "/orders/audit",
//             meta:{ title: '待审核'},
//             component: ()=>import('@/views/orders/layout'),
//             redirect: '/orders/audit/list',
//             children: [
//               {
//                 name: "AuditList",
//                 path: '/orders/audit/list',
//                 meta:{hidden: true},
//                 component:()=>import('@/views/orders/audit_list'),
//               },
//               {
//                 name: "AuditDetail",
//                 path: '/orders/audit/order_detail',
//                 meta:{ title: '订单详情',hidden: true, type: 1},
//                 component:()=>import('@/views/orders/order_detail'),
//               }
//             ]
//           },
//           {
//             name: "Deliver",
//             path: "/orders/deliver",
//             meta:{ title: '待派厂'},
//             component: ()=>import('@/views/orders/layout'),
//             redirect: '/orders/deliver/list',
//             children: [
//               {
//                 name: "DeliverList",
//                 path: '/orders/deliver/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/orders/deliver'),
//               },
//               {
//                 name: "DeliverDetail",
//                 path: '/orders/deliver/order_detail',
//                 meta:{ title: '订单详情', hidden: true, type: 2},
//                 component:()=>import('@/views/orders/order_detail'),
//               }
//             ]
//           },
//           {
//             name: "Unpaid",
//             path: "/orders/unpaid",
//             meta:{ title: '未结款'},
//             component: ()=>import('@/views/orders/layout'),
//             redirect: '/orders/unpaid/list',
//             children: [
//               {
//                 name: "UnpaidList",
//                 path: '/orders/unpaid/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/orders/unpaid'),
//               },
//               {
//                 name: "UnpaidDetail",
//                 path: '/orders/unpaid/order_detail',
//                 meta:{ title: '订单详情', hidden: true, type: 3},
//                 component:()=>import('@/views/orders/order_detail'),
//               }
//             ]
//           },
//           {
//             name: "Complete",
//             path: "/orders/complete",
//             meta:{ title: '已完成'},
//             component: ()=>import('@/views/orders/layout'),
//             redirect: '/orders/complete/list',
//             children: [
//               {
//                 name: "CompleteList",
//                 path: '/orders/complete/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/orders/complete'),
//               },
//               {
//                 name: "CompleteDetail",
//                 path: '/orders/complete/order_detail',
//                 meta:{ title: '订单详情', hidden: true, type: 4},
//                 component:()=>import('@/views/orders/order_detail'),
//               }
//             ]
//           },
//       ]
//   },
//   {
//       path: "/receive",
//       component: layout,
//       meta:{ title: '收发管理', icon: "el-icon-adm-linechart" },
//       redirect: '/receive/acceptance',
//       children: [
//           {
//             path: "/receive/acceptance",
//             meta: { title: "待验收" },
//             redirect: '/receive/acceptance/list',
//             component: ()=>import('@/views/receive/layout'),
//             children: [
//               {
//                 path: '/receive/acceptance/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/receive/acceptance')
//               },
//               {
//                 path: '/receive/acceptance/detail',
//                 meta:{ title: '订单详情', hidden: true, type: 1},
//                 component:()=>import('@/views/receive/detail')
//               }
//             ]
//           },
//           {
//             path: "/receive/await_deliver",
//             meta: { title: "待发货" },
//             redirect: '/receive/await_deliver/list',
//             component: ()=>import('@/views/receive/layout'),
//             children: [
//               {
//                 path: '/receive/await_deliver/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/receive/await_deliver')
//               },
//               {
//                 path: '/receive/await_deliver/detail',
//                 meta:{ title: '订单详情', hidden: true, type: 2},
//                 component:()=>import('@/views/receive/detail')
//               }
//             ]
//           },
//           {
//             path: "/receive/logistics",
//             meta: { title: "物流中" },
//             component: ()=>import('@/views/receive/layout'),
//             redirect: '/receive/logistics/list',
//             children: [
//               {
//                 path: '/receive/logistics/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/receive/logistics')
//               },
//               {
//                 path: '/receive/logistics/goods_all',
//                 meta:{ title: '查看全部', hidden: true},
//                 component:()=>import('@/views/receive/goods_all'),
//               },
//               {
//                 path: '/receive/logistics/detail',
//                 meta:{ title: '订单详情', hidden: true, type: 3},
//                 component:()=>import('@/views/receive/detail')
//               }
//
//             ]
//           },
//           {
//             path: "/receive/wrf",
//             meta: { title: "待返厂" },
//             component: ()=>import('@/views/receive/layout'),
//             redirect: '/receive/wrf/list',
//             children: [
//               {
//                 path: '/receive/wrf/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/receive/wrf')
//               },
//               {
//                 path: '/receive/wrf/detail',
//                 meta:{ title: '订单详情', hidden: true, type: 4},
//                 component:()=>import('@/views/receive/detail')
//               }
//             ]
//           },
//           {
//             path: "/receive/returned",
//             meta: { title: "已返厂" },
//             component: ()=>import('@/views/receive/layout'),
//             redirect: '/receive/returned/list',
//             children: [
//               {
//                 path: '/receive/returned/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/receive/returned')
//               },
//               {
//                 path: '/receive/returned/detail',
//                 meta:{ title: '订单详情', hidden: true, type: 5},
//                 component:()=>import('@/views/receive/detail')
//               }
//             ]
//           },
//           {
//             path: "/receive/pending_test",
//             meta: { title: "待合验" },
//             component: ()=>import('@/views/receive/layout'),
//             redirect: '/receive/pending_test/list',
//             children: [
//               {
//                 path: '/receive/pending_test/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/receive/pending_test')
//               },
//               {
//                 path: '/receive/pending_test/detail',
//                 meta:{ title: '订单详情', hidden: true, type: 6},
//                 component:()=>import('@/views/receive/detail')
//               }
//             ]
//           },
//           {
//             path: "/receive/completed",
//             meta: { title: "已完成" },
//             component: ()=>import('@/views/receive/layout'),
//             redirect: '/receive/completed/list',
//             children: [
//               {
//                 path: '/receive/completed/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/receive/completed')
//               },
//               {
//                 path: '/receive/completed/detail',
//                 meta:{ title: '订单详情', hidden: true, type: 7},
//                 component:()=>import('@/views/receive/detail')
//               }
//             ]
//           },
//       ]
//   },
//   {
//       path: "/afterSale",
//       component: layout,
//       meta:{ title: '售后管理', icon: "el-icon-adm-statistics" },
//       redirect: '/afterSale/pending_review',
//       children: [
//           {
//             path: "/afterSale/pending_review",
//             meta: { title: "待审核" },
//             component: ()=>import('@/views/after_sale/layout'),
//             redirect: '/afterSale/pending_review/list',
//             children: [
//               {
//                 path: '/afterSale/pending_review/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/after_sale/pending_review')
//               },
//               {
//                 path: '/afterSale/pending_review/detail',
//                 meta:{ title: '查看详情', hidden: true, type: 1},
//                 component:()=>import('@/views/after_sale/detail')
//               }
//             ]
//           },
//           {
//             path: "/afterSale/afterSale_wrf",
//             meta: { title: "待返厂" },
//             component: ()=>import('@/views/after_sale/layout'),
//             redirect: '/afterSale/afterSale_wrf/list',
//             children: [
//                 {
//                   path: '/afterSale/afterSale_wrf/list',
//                   meta:{hidden: true},
//                   component: ()=>import('@/views/after_sale/afterSale_wrf')
//                 },
//                 {
//                   path: '/afterSale/afterSale_wrf/detail',
//                   meta:{ title: '查看详情', hidden: true, type: 2},
//                   component:()=>import('@/views/after_sale/detail')
//                 }
//             ]
//           },
//           {
//             path: "/afterSale/fc_logistics",
//             meta: { title: "返厂物流中" },
//             component: ()=>import('@/views/after_sale/layout'),
//             redirect: '/afterSale/fc_logistics/list',
//             children: [
//               {
//                 path: '/afterSale/fc_logistics/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/after_sale/fc_logistics')
//               },
//               {
//                 path: '/afterSale/fc_logistics/fc_logistics_all',
//                 meta:{title: '查看全部',hidden: true},
//                 component: ()=>import('@/views/after_sale/fc_logistics_all')
//               },
//               {
//                 path: '/afterSale/fc_logistics/detail',
//                 meta:{ title: '查看详情', hidden: true, type: 3},
//                 component:()=>import('@/views/after_sale/detail')
//               }
//             ]
//           },
//           {
//             path: "/afterSale/acceptance",
//             meta: { title: "待验收" },
//             component: ()=>import('@/views/after_sale/layout'),
//             redirect: '/afterSale/acceptance/list',
//             children: [
//               {
//                 path: '/afterSale/acceptance/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/after_sale/acceptance')
//               },
//               {
//                 path: '/afterSale/acceptance/detail',
//                 meta:{ title: '查看详情', hidden: true, type: 4},
//                 component:()=>import('@/views/after_sale/detail')
//               }
//             ]
//           },
//           {
//             path: "/afterSale/await_ship",
//             meta: { title: "待发货" },
//             component: ()=>import('@/views/after_sale/layout'),
//             redirect: '/afterSale/await_ship/list',
//             children: [
//               {
//                 path: '/afterSale/await_ship/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/after_sale/await_ship')
//               },
//               {
//                 path: '/afterSale/await_ship/detail',
//                 meta:{ title: '查看详情', hidden: true, type: 5},
//                 component:()=>import('@/views/after_sale/detail')
//               }
//             ]
//           },
//           {
//             path: "/afterSale/fh_logistics",
//             meta: { title: "发货物流中" },
//             component: ()=>import('@/views/after_sale/layout'),
//             redirect: '/afterSale/fh_logistics/list',
//             children: [
//               {
//                 path: '/afterSale/fh_logistics/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/after_sale/fh_logistics')
//               },
//               {
//                 path: '/afterSale/fh_logistics/list_all',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/after_sale/fh_logistics_all')
//               },
//               {
//                 path: '/afterSale/fh_logistics/detail',
//                 meta:{ title: '查看详情', hidden: true, type: 6},
//                 component:()=>import('@/views/after_sale/detail')
//               }
//             ]
//           },
//           {
//             path: "/afterSale/verification",
//             meta: { title: "待合验" },
//             component: ()=>import('@/views/after_sale/layout'),
//             redirect: '/afterSale/verification/list',
//             children: [
//               {
//                 path: '/afterSale/verification/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/after_sale/verification')
//               },
//               {
//                 path: '/afterSale/verification/detail',
//                 meta:{ title: '查看详情', hidden: true, type: 7},
//                 component:()=>import('@/views/after_sale/detail')
//               }
//             ]
//           },
//           {
//             path: "/afterSale/completed",
//             meta: { title: "已完成" },
//             component: ()=>import('@/views/after_sale/layout'),
//             redirect: '/afterSale/completed/list',
//             children: [
//               {
//                 path: '/afterSale/completed/list',
//                 meta:{hidden: true},
//                 component: ()=>import('@/views/after_sale/completed')
//               },
//               {
//                 path: '/afterSale/completed/detail',
//                 meta:{ title: '查看详情', hidden: true, type: 8},
//                 component:()=>import('@/views/after_sale/detail')
//               }
//             ]
//           },
//       ]
//   },
//
//   {
//       path: "/commodity",
//       component: layout,
//       meta:{ title: '商品管理', icon: "el-icon-adm-form" },
//       redirect: '/commodity/goods',
//       children: [
//           {
//             path: "/commodity/goods",
//             meta: { title: "在售商品" },
//             component: ()=>import('@/views/commodity/layout'),
//             redirect: '/commodity/goods/list',
//             children:[
//               {
//                 path: '/commodity/goods/list',
//                 meta:{ hidden: true },
//                 component: ()=>import('@/views/commodity/goods')
//               },
//               {
//                 path: '/commodity/goods/add_good',
//                 meta:{ hidden: true },
//                 component: ()=>import('@/views/commodity/add_good')
//               }
//             ]
//           },
//           {
//             path: "/commodity/good_type",
//             meta: { title: "商品类型" },
//             component: ()=>import('@/views/commodity/layout'),
//             redirect: '/commodity/good_type/list',
//             children: [
//               {
//                 path: '/commodity/good_type/list',
//                 meta:{ hidden: true },
//                 component: ()=>import('@/views/commodity/good_type')
//               },
//             ]
//           },
//           {
//             path: "/commodity/material",
//             meta: { title: "商品材料" },
//             component: ()=>import('@/views/commodity/layout'),
//             redirect: '/commodity/material/list',
//             children: [
//               {
//                 path: '/commodity/material/list',
//                 meta:{ hidden: true },
//                 component: ()=>import('@/views/commodity/material')
//               },
//             ]
//           },
//           {
//             path: "/commodity/good_color",
//             meta: { title: "商品颜色" },
//             component: ()=>import('@/views/commodity/layout'),
//             redirect: '/commodity/good_color/list',
//             children: [
//               {
//                 path: '/commodity/good_color/list',
//                 meta:{ hidden: true },
//                 component: ()=>import('@/views/commodity/good_color')
//               },
//             ]
//           },
//           {
//             path: "/commodity/good_lace",
//             meta: { title: "商品蕾丝" },
//             component: ()=>import('@/views/commodity/layout'),
//             redirect: '/commodity/good_lace/list',
//             children: [
//               {
//                 path: '/commodity/good_lace/list',
//                 meta:{ hidden: true },
//                 component: ()=>import('@/views/commodity/good_lace')
//               },
//             ]
//           },
//           {
//             path: "/commodity/demand",
//             meta: { title: "定制需求" },
//             component: ()=>import('@/views/commodity/layout'),
//             redirect: '/commodity/demand/list',
//             children: [
//               {
//                 path: '/commodity/demand/list',
//                 meta:{ hidden: true },
//                 component: ()=>import('@/views/commodity/demand')
//               },
//             ]
//           },
//           {
//             path: "/commodity/g_style",
//             meta: { title: "商品款式" },
//             component: ()=>import('@/views/commodity/layout'),
//             redirect: '/commodity/g_style/list',
//             children: [
//               {
//                 path: '/commodity/g_style/list',
//                 meta:{ hidden: true },
//                 component: ()=>import('@/views/commodity/g_style')
//               },
//               {
//                 path: '/commodity/goods/add_good_style',
//                 meta:{ title: '商品款式新增', hidden: true },
//                 component: ()=>import('@/views/commodity/add_good_style')
//               }
//             ]
//           },
//       ]
//   },
//   {
//       path: "/activity",
//       component: layout,
//       meta:{ title: '活动中心', icon: "el-icon-adm-project" },
//       hidden:false,
//       redirect: '/activity/main_goods',
//       children: [
//           {
//              path: "/activity/package",
//              meta: { title: "活动套餐" },
//              component: ()=>import('@/views/activity/layout'),
//              redirect: '/activity/package/list',
//              children: [
//                {
//                  path: '/activity/package/list',
//                  meta:{ hidden: true },
//                  component: ()=>import('@/views/activity/package')
//                },
//                {
//                  path: '/activity/package/add_package',
//                  meta:{ title: '套餐新增', hidden: true },
//                  component: ()=>import('@/views/activity/add_package')
//                }
//              ]
//            },
//           {
//              path: "/activity/main_goods",
//              meta: { title: "主推商品" },
//              component: ()=>import('@/views/activity/layout'),
//              redirect: '/activity/main_goods/list',
//              children: [
//                {
//                  path: '/activity/main_goods/list',
//                  meta:{ hidden: true },
//                  component: ()=>import('@/views/activity/main_goods')
//                },
//                {
//                  path: '/activity/activity/add_main_goods',
//                  meta:{ title: '套餐新增', hidden: true },
//                  component: ()=>import('@/views/activity/add_main_goods')
//                }
//              ]
//           },
//       ]
//   },
//   {
//       path: "/mass",
//       component: layout,
//       meta:{ title: '量体管理', icon: "el-icon-adm-user" },
//       redirect: '/mass/part',
//       children: [
//           {
//             path: "/mass/part",
//             meta: { title: "量体部位" },
//             component: ()=>import('@/views/mass/part')
//           }
//       ]
//   },
//   {
//       path: "/vip",
//       component: layout,
//       meta:{ title: '会员体系', icon: "el-icon-adm-organization" },
//       redirect: '/vip/level',
//       children: [
//           {
//             path: "/vip/level",
//             meta: { title: "会员等级" },
//             component: ()=>import('@/views/vip/level')
//           },
//           {
//             path: "/vip/system",
//             meta: { title: "积分体系" },
//             component: ()=>import('@/views/vip/system')
//           },
//       ]
//   },
//   {
//       path: "/shop",
//       component: layout,
//       meta:{ title: '店铺管理', icon: "el-icon-adm-log" },
//       redirect: '/shop/list',
//       children: [
//           {
//             path: "/shop/list",
//             meta: { title: "店铺列表" },
//             component: ()=>import('@/views/shop/layout'),
//             redirect: '/shop/list/shop_list',
//             children: [
//               {
//                 path: "/shop/list/shop_list",
//                 meta: { hidden:true },
//                 component: ()=>import('@/views/shop/shop_list')
//               },
//               {
//                 path: "/shop/list/add_head_office",
//                 meta: { title: "新增总店",hidden:true },
//                 component: ()=>import('@/views/shop/add_head_office')
//               },
//               {
//                 path: "/shop/list/head_office_detail",
//                 meta: { title: "总店详情",hidden:true },
//                 component: ()=>import('@/views/shop/head_office_detail')
//               },
//               {
//                 path: "/shop/list/office_detail",
//                 meta: { title: "分店详情",hidden:true },
//                 component: ()=>import('@/views/shop/office_detail')
//               },
//             ]
//           }
//       ]
//   },
//   {
//     path: "/assess",
//     component: layout,
//     meta:{ title: '评价管理', icon: "el-icon-edit" },
//     redirect: '/assess/measure',
//     children: [
//       {
//         path: "/assess/measure",
//         meta: { title: "测量师评价" },
//         component: ()=>import('@/views/assess/measure')
//       },
//       {
//         path: "/assess/sale",
//         meta: { title: "售后评价" },
//         component: ()=>import('@/views/assess/sale')
//       }
//     ]
//   },
//   {
//       path: "/system",
//       component: layout,
//       meta:{ title: '系统管理', icon: "el-icon-adm-formsetup" },
//       redirect: '/system/role',
//       children: [
//           {
//             path: "/system/role",
//             meta: { title: "角色管理" },
//             component: ()=>import('@/views/system/layout'),
//             redirect: '/system/role/list',
//             children:[
//               {
//                 path: '/system/role/list',
//                 meta: {hidden: true},
//                 component:()=>import('@/views/system/role')
//               },
//               {
//                 path: '/system/role/add_role',
//                 meta: {title: '新增',hidden: true},
//                 component:()=>import('@/views/system/add_role')
//               },
//             ]
//           },
//           {
//             path: "/system/account",
//             meta: { title: "账号管理" },
//             component: ()=>import('@/views/system/layout'),
//             redirect: '/system/account/account_list',
//             children: [
//               {
//                 path: '/system/account/account_list',
//                 meta: {hidden: true},
//                 component:()=>import('@/views/system/account_list')
//               },
//               {
//                 path: '/system/account/add_account',
//                 meta: {title: '新增',hidden: true},
//                 component:()=>import('@/views/system/add_account')
//               },
//             ]
//           },
//           {
//             path: "/system/user",
//             meta: { title: "用户管理" },
//             component: ()=>import('@/views/system/layout'),
//             redirect: '/system/account/user',
//             children: [
//               {
//                 path: '/system/account/user',
//                 meta: {hidden: true},
//                 component:()=>import('@/views/system/user')
//               }
//             ]
//           },
//           {
//             path: "/system/factory",
//             meta: { title: "工厂管理" },
//             component: ()=>import('@/views/system/layout'),
//             redirect: '/system/account/factory',
//             children: [
//               {
//                 path: '/system/account/factory',
//                 meta: {hidden: true},
//                 component:()=>import('@/views/system/factory')
//               },
//               {
//                 path: '/system/account/factory_order',
//                 meta: {title: '订单', hidden: true},
//                 component:()=>import('@/views/system/factory_order')
//               },
//               {
//                 path: '/system/account/factory_order_d',
//                 meta: {title: '订单详情', hidden: true},
//                 component:()=>import('@/views/system/detail')
//               },
//             ]
//           },
//           {
//             path: "/system/log",
//             meta: { title: "工厂日志" },
//             component: ()=>import('@/views/system/layout'),
//             redirect: '/system/log/index',
//             children: [
//               {
//                 path: '/system/log/index',
//                 meta: {hidden: true},
//                 component:()=>import('@/views/system/log')
//               }
//             ]
//           }
//       ]
//   },
//   {
//     path: "/recharge",
//     component:layout,
//     meta: {title: "充值管理", icon: "el-icon-bank-card"},
//     redirect: "/recharge/pending_review",
//     children: [
//       {
//         path: "/recharge/pending_review",
//         meta: { title: "待审核" },
//         component: ()=>import('@/views/recharge/layout'),
//         redirect: '/recharge/pending_review/index',
//         children: [
//           {
//             path: '/recharge/pending_review/index',
//             meta:{ hidden: true },
//             component: ()=>import('@/views/recharge/pending_review')
//           }
//         ]
//       },
//       {
//         path: "/recharge/completed",
//         meta: { title: "已完成" },
//         component: ()=>import('@/views/recharge/layout'),
//         redirect: '/recharge/completed/index',
//         children: [
//           {
//             path: '/recharge/completed/index',
//             meta:{ hidden: true },
//             component: ()=>import('@/views/recharge/completed')
//           }
//         ]
//       }
//     ]
//   },
// ];
